package web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
	//localhost/page/{model}/{pagename}
	@RequestMapping("/page/{model}/{pagename}")
	public String page(
			@PathVariable("model")String model,
			@PathVariable("pagename")String pagename){
		return model+"/"+pagename;
	}
}
